export default [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: "/home",
    name: "Home",
    component: () => import("../components/Home/index.vue"),
    children: [
      {
        path: "/home/music",
        name: "Music",
        component: () => import("../components/Home/Music/index.vue"),
        children: [
          {
            path: "item/:id/:name",
            name: "MusicItem",
            component: () => import("../components/Home/Music/Item/index.vue"),
          }
        ]
      },
      {
        path: "play",
        name: "Play",
        component: () => import("../components/Home/Play/index.vue"),
      },
    ]
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("../components/Login/index.vue")
  },
  {
    path: "/404",
    name: "404",
    component: () => import("../components/404/index.vue")
  },
  {
    path: "/:pathMatch(.*)*",
    redirect: '/404'
  },
]